// 用户模块
export namespace SystemUser {
  // 用户列表
  export interface UserRes {
    userId: number;
    account: string;
    nickName: string;
    email: string;
    phoneNumber: string;
    status: number;
    createTime: string;
    isSuperAdmin: boolean;
  }
  // 用户列表请求参数
  export interface UserReq {
    roleName: string;
    roleKey: string;
    status: number;
    beginTime: string;
    endTime: string;
  }
  // 用户详情
  export interface UserDetailRes {
    userId: number;
    account: string;
    nickName: string;
    email: string;
    phoneNumber: string;
    sex: string;
    avatar: string;
    status: number;
    createTime: string;
    remark: string;
    password: string;
  }
  // 更改用户状态请求参数
  export interface UserChangeStatusReq {
    userId: number;
    status: number;
  }

  // 授权角色列表
  export interface UserAuthRoleRes {
    isOwn: boolean;
    roleId: number;
    roleName: string;
    roleKey: string;
    roleSort: string;
  }
  // 用户授权用户请求参数
  export interface UserAuthRoleReq {
    userId: number;
  }
  // 批量添加授权角色
  export interface UserAuthRoleAddBatchReq {
    userId: number;
    roleIds: number[];
  }
}
